package com.ruoyi.clf.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;

import java.util.Date;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(indexName = "orders")
public class Orders {

    @Id
    private String id;

    @Field(type = FieldType.Text)
    private String verificationImg;

    @Field(type = FieldType.Integer)
    private Integer userId;

    @Field(type = FieldType.Integer)
    private Integer evaluate;

    @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
    private Date payTime;

    @Field(type = FieldType.Integer)
    private Integer deleted;

    @Field(type = FieldType.Text)
    private String verificationCode;

    @Field(type = FieldType.Keyword)
    private List<String> tags;

    @Field(type = FieldType.Integer)
    private Integer serviceTypeId;

    @Field(type = FieldType.Integer)
    private Integer status;

    @Field(type = FieldType.Text)
    private String reserved2;

    @Field(type = FieldType.Integer)
    private Integer mid; // 店铺ID

    @Field(type = FieldType.Integer)
    private Integer serviceId;

    @Field(type = FieldType.Text)
    private String version;

    @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second_millis)
    private Date timestamp;

    @Field(type = FieldType.Integer)
    private Integer couponId;

    @Field(type = FieldType.Integer)
    private Integer carId;

    @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
    private Date reservationTime;

    @Field(type = FieldType.Date, format = DateFormat.date_hour_minute_second)
    private Date orderTime;

    @Field(type = FieldType.Double)
    private Double price;


}